//
//  LKTestpageNameTitleCell.m
//  YLHelper
//
//  Created by she1323 on 2018/5/9.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKTestpageNameTitleCell.h"

@implementation LKTestpageNameTitleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.timeLabel.hidden = YES;
    self.backgroundColor = cellHeaderBgColor;
    // Initialization code
}
-(void)setShowRightBtn:(BOOL)showRightBtn{
    _showRightBtn = showRightBtn;
    if (_showRightBtn) {
        self.timeLabel.text = @"";
        self.timeLabel.hidden = YES;
        self.corretBtn.hidden = NO;
    }
}
-(void)setVisitModel:(LKVisitModel *)visitModel{
    _visitModel = visitModel;
    self.titleLabel.text = _visitModel.customerName;
    self.timeLabel.text = [[_visitModel.visitTime componentsSeparatedByString:@"T"] firstObject];
    self.contentLabel.text = _visitModel.visitContent;
}
-(void)setDetailModel:(LKTestDetailModel *)detailModel{
    _detailModel = detailModel;
    self.contentLabel.text = _detailModel.examinationAppointUserInfo.comment;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
